package com.qiongqi.datadir.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@ConfigurationProperties(prefix = "datadir")
public class DataDirConfig implements Serializable {
    /**
     * 目录名称
     */
    private String name;

    /** 上传根路径 */
    private static String profile;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public static String getProfile()
    {
        return profile;
    }

    public void setProfile(String profile)
    {
        DataDirConfig.profile = profile;
    }
}
